<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%-- 引入JSTL --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%-- 设置共享变量,全局变量
	String rootPath = ${pageContext.request.contextPath }
 --%>
<c:set value="${pageContext.request.contextPath }" var="rootPath"/>
<%--
	想在jsp上new一个Date
	Date now = new Date();
 --%>
<jsp:useBean id="now" class="java.util.Date"/>